import 'package:flutter/material.dart';
import 'package:sainbainu/common/values/colors.dart';

class ContentCardText extends StatelessWidget {
  final String text;
  final int? maxLines;

  const ContentCardText(
    this.text, {
    Key? key,
    this.maxLines = 3,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Text(
      text,
      maxLines: maxLines,
      overflow: TextOverflow.ellipsis,
      style: const TextStyle(
        fontSize: 14,
        color: AppColors.active2,
      ),
    );
  }
}
